package com.lagou.edu.controller;

import com.lagou.edu.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/resume")
public
class ResumeController {
    @Autowired
    private ResumeService resumeService;
    @Value("${server.port}")
    private Integer port;
    @GetMapping("/openstate/{userId}")
    public Integer findDefaultResumeState(@PathVariable long userId ){
         /*return resumeService.findDefaultResumeByUserId(userId).getIsOpenResume();*/
        System.out.println("====>>>>>>>>>>>>>>我是8081，访问到我这里了......");
       return port;
    }

}
